package com.sdy.kzyy.biz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.kzyy.biz.dto.BookingSituationDTO;
import com.sdy.kzyy.biz.mapper.BookingSituationMapper;
import com.sdy.kzyy.biz.model.StoreInventory;
import com.sdy.kzyy.biz.service.BookingSituationService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author: 王越洋
 * @version: v1.0
 * @description: com.sdy.kzyy.biz.service.impl
 * @date:2020/3/25
 */
@Slf4j
@Service
public class BookingSituationServiceImpl extends BaseServiceImpl<BookingSituationDTO> implements BookingSituationService {
    @Autowired
    private BookingSituationMapper bookingSituationMapper;
    @Override
    public List<BookingSituationDTO> getBookingPage(String storeCode,Integer receiveStatus, String name, String startTime, String endTime,
                                                    Page<BookingSituationDTO> page) {
        return bookingSituationMapper.getBookingPage(storeCode, receiveStatus, name, startTime, endTime, page);
    }

    @Override
    public List<BookingSituationDTO> getBookingPage(String storeCode, Integer receiveStatus, String name, String startTime, String endTime) {
        return bookingSituationMapper.getBookingPage(storeCode, receiveStatus, name, startTime, endTime);
    }

    @Override
    public Integer getBookingSize(String storeCode, Integer receiveStatus, String name, String startTime, String endTime) {
        return bookingSituationMapper.getBookingSize(storeCode, receiveStatus, name, startTime, endTime);
    }
}
